 |
|
 |
Subject: Query regarding Lotus Script |
 |
 |
 |
Product Area: Notes Client |
 |
Technical Area: Application Development |
 |
Platform: Windows |
 |
Release: 8.5.2 |
 |
Reproducible: Always |
 |
 |
 |
 |
Just for Information:
We have lotus script which gets the mailid and database name in the lotus agent which creates an object of the VCSharp activex dll, the code of the activexdll is attached.
Query details:
To get the database we use this call:
nsf = session.GetDatabase("", strDatabase, false);
Since we need to parse the mime mail in VCSharp so we need to convert the mail to mime for which we need to have a handle to the database file using Notes API for which we use the following call:
stat = NotesEntries.NSFDbOpen(path, ref this.m_hDb);
The first was giving error whilst the second is not yet tried.
The first was giving error because the path we tested previously was a local directory path like c:\program files\ibm\lotus\notes\mail\sanjeev.nsf but now the LotusScript api is giving mail\sanjeev.nsf which is not a local path because the db resides on the domino server.
So i have got these two changed lines for the above but i dnt know wht is to be wriiten in strserver and the database(i have got "mail\sanjeev.nsf" string as the reference for the mail store, what should i write sanjeev.nsf or mail\sanjeev.nsf) and if the two will work or not.
nsf = session.GetDatabase(strServer, strDatabase, false);
String path = new String(' ', 1024);
NotesEntries.OSPathNetConstruct(0, strServer, strDatabase, path);
MessageBox.Show(path);
stat = NotesEntries.NSFDbOpen(path, ref this.m_hDb);
Regards
Nitin
 
Feedback number WEBB8W689L created by ~Zach Desgerobergikle on 07/13/2012

Status: Open
Comments:

Query regarding Lotus Script (~Zach Desgerobe... 13.Jul.12)
. . What language is the code? (~Fred Asatumibu... 13.Jul.12)
. . . . lotus script code (~Zach Desgerobe... 13.Jul.12)
. . . . . . But your question is not about Lotu... (~Ned Nimfanakon... 13.Jul.12)
. . . . OSPathNetConstruct not working (~Zach Desgerobe... 13.Jul.12)
. . . . . . Show more code (~Ned Nimfanakon... 13.Jul.12)
. . . . . . My best guess (~Fred Asatumibu... 14.Jul.12) |
|  |
|